home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Add-Ons / MPW / MPW re2c 1.1 / parser.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-01  |  379 b   |  26 lines  |  [TEXT/KAHL]

  1. #ifndef _parser_h
  2. #define _parser_h
  3.  
  4. // $Log: parser.h,v $
  5. //Revision 1.1  1994/04/08  15:27:59  peter
  6. //Initial revision
  7. //
  8.  
  9. #include "scanner.h"
  10. #include "re.h"
  11.  
  12. class Symbol {
  13. public:
  14.     static Symbol    *first;
  15.     Symbol        *next;
  16.     Str            name;
  17.     RegExp        *re;
  18. public:
  19.     Symbol(const SubStr&);
  20.     static Symbol *find(const SubStr&);
  21. };
  22.  
  23. void parse(int, ostream&);
  24.  
  25. #endif
  26.